<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:common="http://www.contact.common.com/contacts/ui"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:profile="http://www.contact.core.profile.com/contacts/core/profile/ui">

<ui:component>


    <!--@elvariable id="reRender" type="java.lang.Object"-->
    <!--@elvariable id="id" type="java.lang.String"-->
    <common:modalPanel id="#{id}"
                       header="#{contactSessionBean.header}"
                       bean="#{contactBean}"
                       reRender="#{reRender}"
            >
        <ui:define name="panelBody">


            <rich:tabPanel switchType="client">
                <rich:tab label="Information"
                          disabled="#{not contactInformationSessionBean.editRule['informationTab']}">
                    <h:panelGroup styleClass="contactRichTabPanel" layout="block">
                        <h:panelGrid columns="2">
                            <h:outputLabel value="Full Name :"/>
                            <br/>
                            <h:inputText value="#{contactInformationSessionBean.basicData.fullName}"/>
                            <br/>
                        </h:panelGrid>
                        <profile:mailRichDataTable/>
                        <profile:telephoneRichDataTable/>


                    </h:panelGroup>

                </rich:tab >
                <rich:tab label="Addresses"   disabled="#{not contactInformationSessionBean.editRule['addressTab']}">
                    <h:panelGroup styleClass="contactRichTabPanel" layout="block">
                        <profile:adressRichDataTable/>

                    </h:panelGroup>

                </rich:tab>

            </rich:tabPanel>


        </ui:define>
    </common:modalPanel>


</ui:component>


</html>
